
<%@ page import="sige.DespesaDiversa" %>
<!doctype html>
<html>
	<head>
            <meta name="layout" content="main">
            <g:set var="entityName" value="${message(code: 'despesaDiversa.label', default: 'DespesaDiversa')}" />
            <title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
            <center><h1><g:message code="default.show.label" args="[entityName]" /></h1></center>
            <ul class="breadcrumb">
                <li>
                  <a href="${createLink(uri: '/')}">
                    <i class="icon-home"></i>
                    <g:message code="default.home.label"/>
                  </a>
                  <span class="divider"><g:message code="span.divider" /></span>
                </li>
                <li>
                  <g:link action="list">
                    <i class="icon-list"></i>
                    <g:message code="default.list.label" args="[entityName]" />
                  </g:link>
                  <span class="divider"><g:message code="span.divider" /></span>
                </li>
                <li>
                  <g:link action="create">
                    <i class="icon-file"></i>
                    <g:message code="default.new.label" args="[entityName]" />
                  </g:link>
                </li>
            </ul>
            <div id="show-despesaDiversa" role="main">

                <g:if test="${flash.message}">
                <div class="alert alert-info">
                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                    ${flash.message}
                </div>
                </g:if>
                <div class="span6" >
                    <ol>

                        <g:if test="${despesaDiversaInstance?.ordem}">
                        <li class="fieldcontain">
                            <span id="ordem-label" class="property-label"><g:message code="despesaDiversa.ordem.label" default="Ordem" /></span>
                            <span class="property-value" aria-labelledby="ordem-label"><g:fieldValue bean="${despesaDiversaInstance}" field="ordem"/></span>
                        </li>
                        </g:if>
                      
                        <g:if test="${despesaDiversaInstance?.dataDeVencimento}">
                        <li class="fieldcontain">
                            <span id="dataDeVencimento-label" class="property-label"><g:message code="despesaDiversa.dataDeVencimento.label" default="Data De Vencimento" /></span>
                            <span class="property-value" aria-labelledby="dataDeVencimento-label"><g:formatDate date="${despesaDiversaInstance?.dataDeVencimento}" /></span>
                        </li>
                        </g:if>

                        <g:if test="${despesaDiversaInstance?.valorBase}">
                        <li class="fieldcontain">
                            <span id="valorBase-label" class="property-label"><g:message code="despesaDiversa.valorBase.label" default="Valor Base" /></span>
                            <span class="property-value" aria-labelledby="valorBase-label"><g:fieldValue bean="${despesaDiversaInstance}" field="valorBase"/></span>
                        </li>
                        </g:if>
                      
                        <g:if test="${despesaDiversaInstance?.pagamento.pago}">
                        <li class="fieldcontain">
                            <span id="valorBase-label" class="property-label"><g:message code="despesaDiversa.valor-pago.label" default="Valor Pago" /></span>
                            <span class="property-value" aria-labelledby="valorBase-label">
                              <g:link controller="pagamento" action="show" id="${despesaDiversaInstance?.pagamento?.id}">
                                  ${despesaDiversaInstance?.pagamento?.valor}
                              </g:link>
                            </span>
                        </li>
                        </g:if>
                    </ol>
                    <g:form>
                        <fieldset class="form-actions">
                            <g:hiddenField name="id" value="${despesaDiversaInstance?.id}" />
                            <g:link class="btn btn-warning" action="edit" id="${despesaDiversaInstance?.id}">
                                <i class="icon-edit icon-white"></i>
                                <g:message code="default.button.edit.label" default="Edit" />
                            </g:link>
                            <g:if test="${!despesaDiversaInstance?.pagamento.pago}">
                                <g:link class="btn btn-info" controller="pagamento" action="show" id="${despesaDiversaInstance?.pagamento?.id}">
                                    <g:message code="despesaDiversa.consolidar-pagamento.label" default="Consolidar Pagamento" />
                                </g:link>
                            </g:if>
                        </fieldset>
                    </g:form>
                </div>
            </div>
	</body>
</html>
